import service from './service'

export default {
  // 获取OA 合同审批列表
  queryContractApprovalList(params) {
    return service.post('/contract-client-web/contractCreate/oaProcessCommentInfo', params)
  },

  // OA 撤回审批
  cancelContractApproval(params) {
    return service.post('/contract-client-web/contractProcess/stopProcess', params)
  },
  //
  queryContractCreateList(params) {
    return service.post('/contract-client-web/contractCreate/list', params)
  },
  //选择模板列表
  templateListForForm(params) {
    return service.post('/contract-client-web/templateDefinition/templateListForForm', params)
  },
  //合同新增页面/再来一单页面
  detailForAdd(params) {
    return service.post('/contract-client-web/contractCreate/detailForAdd', params)
  },
  //合同新增
  addContractForm(params) {
    return service.post('/contract-client-web/contractCreate/addContractForm', params)
  },
  //合同自动创建
  autoAddContractForm(params) {
    return service.post('/contract-client-web/contract/auto/addContractForm', params)
  },
  //合同自动创建修改
  editContractForm(params) {
    return service.post('/contract-client-web/contract/auto/editContractForm', params)
  },
  //合同中台-变更-新增变更
  contractChange(params) {
    return service.post('/contract-client-web/contract/contractFormChange/contractChange', params)
  },
  //合同续签--续签提交
  renewContractForm(params) {
    return service.post('/contract-client-web/contractRenew/renewContractForm', params)
  },
  //合同续签--合同续签页面参数查询
  queryContractFormRenewArgs(params) {
    return service.post('/contract-client-web/contractRenew/queryContractFormRenewArgs', params)
  },
  //操作日志
  logList(params) {
    return service.post('/contract-client-web/contractCreate/logList', params)
  },
  //驳回
  auditReject(params) {
    return service.post('/contract-client-web/contractCreate/auditReject', params)
  },
  //通过
  auditPass(params) {
    return service.post('/contract-client-web/contractCreate/auditPass', params)
  },
  //通过
  deleteContract(params) {
    return service.post('/contract-client-web/contractCreate/delete', params)
  },
  //合同自动创建前校验
  createContractBeforeCheck(params) {
    return service.post('/contract-client-web/contract/auto/createContractBeforeCheck', params)
  },
  //合同列表-操作日志
  queryContractFormRecord(params) {
    return service.post('/contract-client-web/contractSearch/queryContractFormRecord', params)
  },
  //合同新增-批量新增
  batchAddContractForm(params) {
    return service.post('/contract-client-web/contractCreate/batchAddContractForm', params)
  },
  //合同新增模版校验
  contractPreVerification(params) {
    return service.post('/contract-client-web/contractCreate/contractPreVerification', params)
  },
  // 合同创建、合同续签-条件计算-根据已填写表单数据计算当前业务要素的权限、默认值、可选值等
  calcTemplateDefinitionRuleField(params) {
    return service.post('/contract-client-web/templateDefinition/calcTemplateDefinitionRuleField', params)
  },
}
    